package com.github.caijh.mall.enums;

import com.github.caijh.framework.core.enums.IndexEnum;

/**
 * 邮费类型
 */
public enum PostageComputeType implements IndexEnum {
    PRODUCT_NUM(1, "按件数"),
    PRODUCT_WEIGHT(2, "按重量"),
    PRODUCT_SIZE(3, "按体积");

    private final int type;

    private final String description;

    PostageComputeType(int type, String description) {
        this.type = type;
        this.description = description;
    }

    @Override
    public int getIndex() {
        return this.type;
    }

    public String getDescription() {
        return description;
    }
}
